package com.ruoyi.topic.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.Base;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author xyf
 * @since 2024-12-18
 */
@Getter
@Setter
@TableName("topic_post")
public class TopicPost extends Base {

    private static final long serialVersionUID = 1L;

    /**
     * 帖子标题
     */
    @TableField("title")
    private String title;

    /**
     * 帖子正文
     */
    @TableField("content")
    private String content;

    /**
     * 正文相关图片
     */
    @TableField("images")
    private String images;

    /**
     * 所属议题id（可为空)
     */
    @TableField("topic_id")
    private Long topicId;

    /**
     * 发帖人id
     */
    @TableField("post_user_id")
    private Long postUserId;

    /**
     * 点赞数
     */
    @TableField("likes")
    private Integer likes;

    /**
     * 评论数
     */
    @TableField("comments")
    private Integer comments;


}
